add_rules("mode.debug", "mode.release")
set_config("mode", "release")
set_languages("c++latest")

target("temp-cpp-imgui", function()
  set_kind("binary")
  add_files("src/**.cpp")
  add_cxflags("/utf-8")
  add_defines("UNICODE", "_UNICODE")
  -- Win32相关库
  add_syslinks("user32")
  -- imgui
  add_syslinks("d3d12", "dxgi")
  add_includedirs("lib/imgui", "lib/imgui/backends")
  add_files("lib/imgui/*.cpp")
  add_files("lib/imgui/backends/imgui_impl_win32.cpp")
  add_files("lib/imgui/backends/imgui_impl_dx12.cpp")
  -- ImguiFileDialog
  add_files("lib/ImGuiFileDialog/ImGuiFileDialog.cpp")
  add_includedirs("lib/ImGuiFileDialog")
end)
